//package com.rtx.wms.std.job.bak;
//
//import java.util.List;
//
//import org.quartz.DisallowConcurrentExecution;
//import org.quartz.JobExecutionContext;
//import org.quartz.JobExecutionException;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import com.rtx.edi.job.quartz.annotation.RtxJobAnnotation;
//import com.rtx.edi.job.quartz.base.BaseJob;
//import com.rtx.wms.std.common.bean.WmsConstant;
//import com.rtx.wms.std.common.service.CommonService;
//import com.rtx.wms.std.handler.so.bak.ApiOrderBakHandle;
//
//@Component
//@DisallowConcurrentExecution
//@RtxJobAnnotation(jobName = "ApiOrderBakJob",description = "出库单中间表备份",cron = "0 0/1 * * * ?")
//public class ApiOrderBakJob implements BaseJob {
//
//    private Logger logger = LoggerFactory.getLogger(this.getClass());
//
//    @Autowired
//    private ApiOrderBakHandle apiOrderBakHandle;
//
//    @Autowired
//    private CommonService commonService;
//
//    @Override
//    public void execute(JobExecutionContext context) throws JobExecutionException {
//        //激活的仓库
//        List<String> whseidList = commonService.selectActiveWhseidNotEnterprise(WmsConstant.ENTERPRISE);
//        for(String whseid : whseidList){
//            try {
//            	apiOrderBakHandle.handleBak("wmwhse1");
//            } catch (Exception e) {
//                logger.error("仓库{}出库单中间表备份",whseid,e);
//            }
//        }
//    }
//}
